<include file="public@header" />
</head>
<body>
	<div class="wrap">
		<ul class="nav nav-tabs">
			<li class="active"><a href="">基础设置</a></li>
			<li><a href="{:url('wx/menu')}">菜单管理</a></li>
		</ul>
		<form class="form-horizontal js-ajax-form margin-top-20" role="form" method="post" action="{:url('admin/wx/wx_option_post')}">
			<div class="form-group">
				<label for="appid" class="col-sm-3 control-label">开发者ID(AppID)</label>
				<div class="col-md-6 col-sm-10">
					<input type="text" class="form-control" id="appid" name="appid" value="{$param['appid']||default=''}">
				</div>
			</div>
			<div class="form-group">
				<label for="appsecret" class="col-sm-3 control-label">开发者密码(AppSecret)</label>
				<div class="col-md-6 col-sm-10">
					<input type="text" class="form-control" id="appsecret" name="appsecret" value="{$param['appsecret']||default=''}">
				</div>
			</div>
			<div class="form-group">
				<label for="token" class="col-sm-3 control-label">令牌(Token)</label>
				<div class="col-md-6 col-sm-10">
					<input type="text" class="form-control" id="token" name="token" value="{$param['token']||default=''}">
				</div>
			</div>
			<div class="form-group">
				<label for="encodingaeskey" class="col-sm-3 control-label">消息加解密密钥(EncodingAESKey)</label>
				<div class="col-md-6 col-sm-10">
					<input type="text" class="form-control" id="encodingaeskey" name="encodingaeskey" value="{$param['encodingaeskey']||default=''}">
				</div>
			</div>
			<div class="form-group">
				<label for="ip" class="col-sm-3 control-label">IP白名单地址</label>
				<div class="col-md-6 col-sm-10">
					<p class="form-control" id="ip">{$param.ip}</p>
				</div>
			</div>
			<div class="form-group">
				<label for="address" class="col-sm-3 control-label">服务器地址</label>
				<div class="col-md-6 col-sm-10">
					<p class="form-control" id="address">{$param.address}</p>
				</div>
			</div>
			<div class="form-group">
				<label for="address" class="col-sm-3 control-label">回调地址</br>(微信网页授权获取基本信息)</label>
				<div class="col-md-6 col-sm-10">
					<p class="form-control" id="address">{$param.callback_address}</p>
				</div>
			</div>
			<div class="form-group">
				<div class="col-sm-offset-2 col-sm-10">
					<button type="submit" class="btn btn-primary js-ajax-submit">{:lang('SAVE')}</button>
				</div>
			</div>
		</form>
	</div>
	<script src="__STATIC__/js/admin.js"></script>
</body>
</html>